package com.swx.identityservice.dtos.transferposition;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel("输出调派Dto")
public class TransferPositionListOutputDto {
    @ApiModelProperty("角色集合")
    private List<TransferPositionOutputDto> positions;
    @ApiModelProperty("角色总数")
    private long total;

    public void addUser(TransferPositionOutputDto transferpositionoutputdto) {
        if (positions == null)  positions = new ArrayList<>();
        this.positions.add(transferpositionoutputdto);
    }
}
